package com.kanq.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kanq.pojo.entity.KanqAiHistory;
import com.kanq.pojo.response.HistoryConversation;

import java.util.List;

/**
 * @author wangchong
 * @description 针对表【kanq_ai_history】的数据库操作Service
 * @createDate 2025-06-04 14:16:21
 */
public interface KanqAiHistoryService extends IService<KanqAiHistory> {

    String generateTitle(String question);

    void saveTitle(String userId, Long titleId, String title);

    IPage<KanqAiHistory> selectAllPage(Page<KanqAiHistory> objectPage, String userId);

    List<HistoryConversation> getHistoryConversationData(String userId, String conversationId);
}
